package com.spring.springboot.interceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;

/**
*@author LSY
*Time: 2018年11月7日上午10:37:13
*
*
*/
public class TestInterceptor implements HandlerInterceptor{

	@Override
	public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object object) {
		System.out.println(request.getRequestURI());
		return true;
	}
	@Override
	public void postHandle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object object, ModelAndView modelAndView) throws Exception{
		
	}
	@Override
	public void afterCompletion(HttpServletRequest httpRequest, HttpServletResponse httpServletResponse, Object o, Exception e) throws Exception{
		
	}
}
